package com.aiyige.model.request;

import com.aiyige.base.api.ApiManager;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * 客户管理筛选
 * Created by xiachao
 */

public class GetCustomerFilterRequest {

    String pageNum;
    String pageSize  = "200";
    String subject;
    String tagId;

    private GetCustomerFilterRequest(Builder builder) {
        setPageNum(builder.pageNum);
        setPageSize(builder.pageSize);
        setSubject(builder.subject);
    }

    public static Builder newBuilder() {
        return new Builder();
    }

    public String getPageNum() {
        return pageNum;
    }

    public void setPageNum(String pageNum) {
        this.pageNum = pageNum;
    }

    public String getPageSize() {
        return pageSize;
    }

    public void setPageSize(String pageSize) {
        this.pageSize = pageSize;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getTagId() {
        return tagId;
    }

    public void setTagId(String tagId) {
        this.tagId = tagId;
    }

    public static final class Builder {
        private String pageNum;
        private String pageSize = "200";
        private String subject;
        private String tagId;

        private Builder() {
        }

        public Builder pageNum(String pageNum) {
            this.pageNum = pageNum;
            return this;
        }

        public Builder pageSize(String pageSize) {
            this.pageSize = pageSize;
            return this;
        }

        public Builder subject(String subject) {
            this.subject = subject;
            return this;
        }
        public Builder tagId(String tagId) {
            this.tagId = tagId;
            return this;
        }

        public Call<ResponseBody> build() {
            return ApiManager.getService().getCustomerFilter(subject,tagId,pageNum,pageSize);
        }
    }
}
